import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);

const routes = [
  { path: '/login', component: () => import('@/views/login/index.vue') },
  {
    path: '/',
    component: () => import('@/views/layout/index.vue'),
    redirect: '/liecharts',
    children: [
      { path: 'liecharts', component: () => import('@/views/echarts/index.vue')},
      // 点位管理3个页面的路由
    ]
  
  },
];

const router = new VueRouter({
  mode: 'history',
  routes,
});

export default router;
